<template>
  <view class="home">
    <view class="top-wrap">
      <view class="search-bar">
        <view class="safe-area-top"></view>
        <view class="search-wrap">
          <view class="input">
            <view class="iconfont">&#xe632;</view>
            <text>旅行</text>
          </view>
          <view class="right-wrap">
            <view class="iconfont">&#xe600;</view>
            <view class="iconfont">&#xe8b8;</view>
          </view>
        </view>
      </view>
      
      <!-- 轮播图 -->
      <view class="banner">
        <!-- <image src="../../../static/banner/banner_jd_5.jpg"></image> -->
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        
      }
    },
    onLoad() {
      
    },
    methods: {
      rightClick() {
        
      },
    }
  }
</script>

<style lang="scss" scoped>
  .home {
    overflow: hidden;
    height: 5000upx;
    // padding-top: 100upx;
    // background-color: #000;
    
    .top-wrap {
      height: 726upx;
      background-image: url(../../../static/top_wrap_bg.png);
      background-size: 100% 100%;
      overflow: hidden;
      
      .banner {
        width: 700upx;
        height: 280upx;
        margin: auto;
        border-radius: 10upx;
        margin-top: calc(var(--status-bar-height) + 88upx + 15upx);
        
        image {
          width: 100%;
          height: 100%;
          border-radius: 10upx;
        }
      }
    }
    
    .search-bar {
      box-sizing: border-box;
      background-image: url(../../../static/top_wrap_bg.png);
      background-size: 100% 726upx;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      margin: auto;
      
      .safe-area-top {
        height: var(--status-bar-height);
      }
      
      .search-wrap {
        height: 88upx;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 0 24upx;
        
        .input {
          flex: 1;
          height: 62upx;
          border-radius: 62upx;
          background-color: #fff;
          display: flex;
          align-items: center;
          overflow: hidden;
          
          .iconfont {
            color: #999;
            padding: 0 15upx 0 20upx;
          }
          
          text {
            width: calc(100% - 90upx);
            display: inline-block;
            color: #999;
            font-size: 26upx;
            padding-right: 35upx;
            box-sizing: border-box;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
        
        .right-wrap {
          display: flex;
          align-items: center;
          margin-left: 10upx;
          
          .iconfont {
            padding: 0 15upx;
            height: 88upx;
            line-height: 88upx;
            text-align: center;
            color: #fff;
            font-size: 45upx;
            
            &:last-of-type {
              padding-right: 22upx;
            }
          }
        }
      }
    }
    
    
  }
</style>
